#ifndef AUTH_H
#define AUTH_H

#include <QDialog>
#include <QLineEdit>
#include <QPushButton>
#include <QTabWidget>
#include <QVBoxLayout>
#include <QPushButton>
#include <QLineEdit>
#include <QFormLayout>
#include <QMessageBox>
#include <QRadioButton>

#include "sql.h"
#include "user.h"

class AuthDialog : public QDialog
{
    Q_OBJECT
public:
    AuthDialog(QWidget *parent = nullptr);

private:
    QWidget* createLoginTab();
    QWidget* createRegisterTab();

    void handleLogin(const QString &username, const QString &password, const QString &userType);
    void handleRegister(const QString &username, const QString &password, const QString &confirmPassword);


};


#endif // AUTH_H
